#ifndef CUBE_MEMCHECK_H
#define CUBE_MEMCHECK_H

enum dtype_mem_check
{
	TYPE(MEM_CHECK)=0x4300,
};

enum subtype_mem_check
{
	SUBTYPE(MEM_CHECK,ROOT_STRUCT)=0x01,
	SUBTYPE(MEM_CHECK,ROOT_ADDRESS),
	SUBTYPE(MEM_CHECK,PAGE_HEAD)
};

typedef struct memcheck_root_struct
{
	UINT16 bottom;
	UINT16 upper;
	UINT32 total_size;
	UINT32 pagetable_size;
	UINT32 static_size;
	UINT32 occupy_size;
	UINT16 page_num;
	UINT16 fixed_pages;
	UINT16 empty_pages;
	UINT16 temp_pages;
}__attribute__((packed)) RECORD(MEM_CHECK,ROOT_STRUCT);
#endif
